<#import "Common.ftl" as zbsgc>
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/common/inc.jsp" %>
<page:header title="新增页面">
<script lang="JavaScript">
<%-- 返回操作 --%>
function back(){
	window.location.href = "<@zbsgc.escape text="base"/>/${methodMeta.listUrl}";
}
<%-- 新增操作 --%>
function create${beanMeta.clazzName}(){
	 var saveOp = new AjaxFormOp();
	 saveOp.form=document.create${beanMeta.clazzName}Form;
	 saveOp.opName='保存';
	 saveOp.beforeSubmit=function(a,f,o){
	}
	saveOp.success=function(data){
    	if(data.flag){
    		alert(data.msg);
    		back();
    	}else{
    		alert(data.msg);
    	}
	};
	saveOp.execute();
}
</script>

</page:header>
	<%-- 头部 --%>
<div class="location"><span><d:path/></span></div>
 <form action="<@zbsgc.escape text="base"/>/${methodMeta.createUrl}" name="create${beanMeta.clazzName}Form" id="create${beanMeta.clazzName}Form" method="post">
  <table cellspacing="0" cellpadding="0" align="center" border="0" width="98.2%" class="detailList">
	 			<@zbsgcFieldContent />
  </table>
 </form>
<br/>	
<div align="center">
  <input type="button" icon="save" value="保存" onclick="create${beanMeta.clazzName}();"/>
  <input type="button" icon="cancel" value="取消" onclick="back()"/>
</div>
<%-- 底部 --%>
<d:sysHelper/>
<script lang="JavaScript">
	autoStyle(null,{select:false,radio:false});
</script>
<page:footer></page:footer>